package com.gxar.navigation.server.base.model.route.vo.request;

import com.alibaba.fastjson2.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.gxar.navigation.server.base.model.node.vo.LocationVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @author linsy
 * @version 1.0
 * @created 2023/9/18 10:01
 */
@Data
@ApiModel("路线规划请求")
public class DirectionRequest {

    @ApiModelProperty("起点坐标")
    @JSONField(name = "origin")
    @JsonProperty("origin")
    @NotNull(message = "起点坐标不能为空")
    private LocationVO origin;

    @ApiModelProperty("终点坐标")
    @JSONField(name = "destination")
    @JsonProperty("destination")
    @NotNull(message = "终点坐标不能为空")
    private LocationVO destination;

}
